using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmPurchaseOrderPrepayCollateral")]
    public class PurchaseOrderPrepayCollateral
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "IcmPoPreColId", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public int IcmPoPreColId { get; set; }

		[ForeignKey("IcmColType")]
		[DataMember, Display(Name = "IcmColTypeId", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public Nullable<int> IcmColTypeId { get; set; }

		[DataMember, Display(Name = "IcmPoPreColRefNo", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public string IcmPoPreColRefNo { get; set; }

		[DataMember, Display(Name = "IcmPoPreColAmount", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public Nullable<double> IcmPoPreColAmount { get; set; }

		[DataMember, Display(Name = "IcmPoPreColDescr", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public string IcmPoPreColDescr { get; set; }

		[ForeignKey("IcmPo")]
		[DataMember, Display(Name = "IcmPoId", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public Nullable<int> IcmPoId { get; set; }

		[DataMember, Display(Name = "ReceiptNo", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public string ReceiptNo { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PurchaseOrderPrepayCollateralResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual ICM.SysCollateralType IcmColType { get; set; }

		public virtual ICM.PurchaseOrder IcmPo { get; set; }

    }
}